package com.ziyun.pop.modules.userPayment.service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.order.entity.UserPaymentEntity;

import io.renren.common.utils.PageUtils;

/**
 * 用户支付记录表
 *
 * @author llc
 * @email
 * @date 2018-09-29 09:57:13
 */
public interface UserPaymentService extends IService<UserPaymentEntity> {

	PageUtils queryPage(Map<String, Object> params);

	UserPaymentEntity getPaySuccLastEntityByOrderId(String orderId);

	Integer checkOrderIsPay(String orderId);

    Map<String,String> getPaymentById(String orderId, String s, BigDecimal surplusPayed);

    List<UserPaymentEntity> queryOrderPaymentInfo(String relId);

    /**
     * 根据订单号查询支付信息
     * @param orderNo
     * @return
     */
    UserPaymentEntity getPaySuccLastEntityByOrderNo(String orderNo);


    /**
     * 扫码支付先写入响应码
     * @param userPaymentEntity
     * @return
     */
    void writePayResponseData(UserPaymentEntity userPaymentEntity);
}
